<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="<%=basePath%>/script/jquery.js"></script>
<script language="javascript" src="<%=basePath%>/script/pageCommon.js"
	charset="utf-8"></script>
<script language="javascript" src="<%=basePath%>/script/PageUtils.js"
	charset="utf-8"></script>
<link type="text/css" rel="stylesheet"
	href="<%=basePath%>/style/blue/pageCommon.css" />
<script type="text/javascript">
	
</script>
<title>部门管理</title>
</head>
<base href="<%=basePath%>">
<body>
	<s:debug></s:debug>
	<div id="Title_bar">
		<div id="Title_bar_Head">
			<div id="Title_Head"></div>
			<div id="Title">
				<!--页面标题-->
				<img border="0" width="13" height="13"
					src="<%=basePath%>/style/images/title_arrow.gif" /> 岗位管理
			</div>
			<div id="Title_End"></div>
		</div>
	</div>

	<div id="MainArea">
		<table cellspacing="0" cellpadding="0" class="TableStyle">

			<!-- 表头-->
			<thead>
				<tr align="CENTER" valign="MIDDLE" id="TableTitle">
					<td width="200px">部门名称</td>
					<td width="300px">上级部门名称</td>
					<td width="300px">只能说明</td>
					<td>相关操作</td>
				</tr>
			</thead>

			<!--显示数据列表-->
			<tbody id="TableData" class="dataContainer">
				<s:iterator value="#objList">
					<tr class="TableDetail1 template">
						<td><s:a action="dept_list?parentId=%{id}">${name}&nbsp;</s:a> </td>
						<td>${parent.name }</td>
						<td>${desci}&nbsp;</td>
						<td>
						<s:a action="dept_delete?id=%{id}" onclick="return confirm('确定要删除吗？')">删除</s:a>,
						<s:a action="dept_toUpdate?id=%{id}&parentId=%{parent.id}">修改</s:a>
						</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>

		<!-- 其他功能超链接 -->
		<div id="TableTail">
			<div id="TableTail_inside">
				<s:a action="dept_toAdd?parentId=%{parentId}"> <img
					src="<%=basePath%>/style/images/createNew.png" /></s:a>
				<s:if test="#parent != null">
					<s:a action="dept_list?parentId=%{#parent.parent.id}"><img src="<%=basePath%>/style/blue/images/button/ReturnToPrevLevel.png" /></s:a>
				</s:if>
			</div>
		</div>
	</div>
</body>
</html>